<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>伊森手表首页</title>
    <link rel="stylesheet" href="css/reset.css">
    <script type="text/javascript" src="js/winResponsive.js"></script>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
    <div class="header">
        <div class="top">
            <div class="container">
                <div class="left">
                    <a class="skype">
                        <img src="images/header_skype.png" alt="">
                    </a>
                    <a class="email">
                        <img src="images/header_email.png" alt="">
                    </a>
                    <a class="mobile">
                        <img src="images/haeder_mobile.png" alt="">
                    </a>
                </div>
                <div class="right">
                        伊森官方旗舰网站欢迎您的光临
                </div>
            </div>
        </div>
        <div class="bottom">
            
            <div class="container">
                    <div class="logo">
                            <!-- <img src="images/logo.png" alt=""> -->
                        </div>
                <a href="index.html">首页</a>
                <a href="">关羽伊森</a>
                <a href="list.html">产品系列</a>
                <a href="">售后服务</a>
                <a href="">联系伊森</a>
            </div>
        </div>
        <div class="banne">
            <ul id="banner">
                <li><img src="images/banne1.png" alt=""></li>
                <li><img src="images/banne2.png" alt=""></li>
                <li><img src="images/banne3.png" alt=""></li>
                <li><img src="images/banne4.png" alt=""></li>
            </ul>
            
            <div class="selectbox">
                <div class="container">
                    <ul id="selected">
                        <!-- <li class="selected"></li>
                        <li></li>
                        <li></li>
                        <li></li> -->
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="content">  
        <div class="sell">
            <div class="title">
                <div class="parent">
                    <h2>热销款</h2>
                    <p>Hot style</p>
                </div>
            </div>
            <div class="product">
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
                <a href="">
                    <div class="proimg">
                        <img src="images/watch1.png" alt="">
                    </div>
                    <div class="proinfo" id="proinfo">
                        <p>伊森男腕表</p>
                        <p>伊森男士腕表时尚型</p>
                    </div>
                </a>
            </div>
            <div class="morecontainer">
                <a href="" class="more">
                    查看更多
                </a>
            </div>
            
        </div>
        <div class="show">
            <img src="images/firstpage.png" alt="">
            <div class="info">
                <p>伊森</p>
                <p>为你打造最好的腕表</p>
            </div>
            
        </div>
        <div class="new">
            <div class="title">
                <div class="parent">
                    <h2>最新款</h2>
                    <p>Latest style</p>
                </div>
            </div>
            <div class="product">
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
                <a href="">
                        <div class="proimg">
                            <img src="images/watch1.png" alt="">
                        </div>
                        <div class="proinfo" id="proinfo">
                            <p>伊森男腕表</p>
                            <p>伊森男士腕表时尚型</p>
                        </div>
                </a>
            </div>
            <div class="morecontainer">
                <a href="" class="more">
                    查看更多
                </a>
            </div>
            
        </div>
    </div>
    <div class="footer">
        <div class="container">
            <div class="options">
                <div class="definite">
                    <div class="top">伊森售后服务</div>
                    <ul id="defnite">
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                    </ul>
                </div>
                <div class="definite">
                    <div class="top">伊森售后服务</div>
                    <ul id="defnite">
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                    </ul>
                </div>
                <div class="definite">
                    <div class="top">伊森售后服务</div>
                    <ul id="defnite">
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                        <li><a href="">品牌介绍</a></li>
                    </ul>
                </div>
            </div>
            <div class="info">
                <p>Copyright2016伊森腕表版权所</p>
                <p>粤ICP备1234567号</p>
                <p>贵宾专线：400-200-9999</p>
                <p>地址：广州市海珠区XX大厦1808室</p>
            </div>
        </div>
    </div>
    <script>
        

        //轮播图
        var ul = document.querySelector('#banner');
        var lis = document.querySelectorAll('#banner li');
        var selected = document.querySelector('#selected');
        var l = lis.length;
        var index = 0;
        var T = setInterval(run,1000);
        for(var i = 0;i<l;i++){
            var li = document.createElement('li');
            li.setAttribute('name',i);
            selected.appendChild(li);
            li.li_index = i;
            li.onclick = function(){
                index = parseInt(li[this.li_index].getAttribute('name'));
                changeindex(index);
            }
        }
        
        var li = document.querySelectorAll('#selected li');
        li.forEach(function(get_value,get_index){
            if(get_index == index){
                get_value.className = 'selected';
            }
        })
        function run(){
            if(index == l){
                index = 0;
            }
            // ul.style.left = -1*1366*index+'px';
            changeindex(index);
            
            index++;
        }
        function changeindex(get_index){
            ul.style.left = -1*1366*get_index+'px';
            li.forEach(function(v,i){
                v.classList.remove('selected');
                if(i == get_index){
                    v.className = 'selected';
                }
            })
        }
        ul.onmousemove = function(){
            clearInterval(T);
        }
        ul.onmouseout = function(){
            T = setInterval(run,1000);
        }
        
        
    </script>
</body>
</html>